Component({
  methods: {
    onTabTap(e) {
      const index = e.currentTarget.dataset.index
      let url = ''
      if (index == 0) url = '/pages/finance/index/index'
      else if (index == 1) url = '/pages/discover/discover'
      else if (index == 2) url = '/pages/profile/profile'
      wx.switchTab({ url })
    }
  }
}) 